package routes

import (
	v1 "ginblog/api/v1"
	"github.com/gin-gonic/gin"
)

func CategoryRoutes(router *gin.RouterGroup) {
	router.POST("category/add", v1.AddCategory)
	router.GET("categorys", v1.GetCategorys)
	router.GET("category/:name", v1.GetCategory)
	router.PUT("category/:id", v1.EditCategory)
	router.DELETE("category/:id", v1.DeleteCategory)
}
